Acceleration deceleration control method

ABSTRACT

A speed adjustment control method includes determining an amount of variation in speed from a data table corresponding to |command speed−initial speed| and speed adjustment time, determining number of divisions of |command speed−initial speed| by dividing |command speed−initial speed| by the amount of variation in speed, determining number of divisions of the speed adjustment time by subtracting 1 from the number of divisions of |command speed−initial speed|, determining a speed variation interval by dividing the speed adjustment time by the number of divisions of the speed adjustment time, determining a value for speed that is obtained by adding the amount of variation in speed to previously determined speed for each speed variation interval after starting with a speed obtained by adding amount of variation in speed to the initial speed during acceleration, switching over to the command speed on attaining the command speed, and determining a value for speed that is obtained by subtracting the amount of variation in speed from previously determined for each speed variation interval after starting from the command speed or current speed during deceleration.

TECHNICAL FIELD

[0001] The present invention relates to a controlling acceleration or deceleration (hereinafter, “speed adjustment”) of a stepping motor etc., so that the speed varies smoothly.

BACKGROUND ART

[0002] A conventional speed variation control method is explained below. Conventionally, speed of, for example, a motor is varied by varying a command speed at every fixed interval. This method is called as a fixed time interval method in the explanation that follows.

[0003]FIG. 12 is a block diagram of a positioning unit that employs the fixed time interval method. A reference numeral 101 represents a speed-adjustment control block, 112 represents a central processing unit (CPU) or a computing unit (hereinafter, “computing unit”), 113 represents a variable frequency pulse generating circuit, and 114 represents a position control circuit.

[0004] The speed adjustment control block 101 includes the computing unit 112. A setting value, a reference clock, an interrupt signal, number of output pulses are input into the computing unit 112 from outside. The computing unit 112 generates and outputs a speed command value and a control signal and a setting value related to position.

[0005] The variable frequency pulse generating circuit 113 calculates a pulse string fout of variable frequency based on the speed command value-output from the computing unit 112 in the speed adjustment control block 101, and outputs the pulse string fout.

[0006] The position control circuit 114 receives the pulse string, counts this pulse string and outputs the number of output pulses to the speed adjustment control block 101. In addition to that, the position control circuit 114 compares the control signal and the setting value related to position that are received from the speed adjustment control block 101 with number of output pulses and generates a stop signal when a prescribed positioning is completed.

[0007] When the stop signal is validated, the variable frequency pulse generating circuit 113 stops the output of the pulse string.

[0008]FIG. 13 is a graph of speed variation in the fixed time interval method. In FIG. 13, a horizontal axis indicates time, a vertical axis indicates speed and an area indicates amount of shift (number of output pulses). The speed is varied (accelerated or decelerated) by varying the number of pulses output for each time interval of speed variation (control cycle: Δtc=fixed value).

[0009] During acceleration, number of divisions (CTa—where ‘a’ stands for acceleration) of acceleration time is calculated and taken as number of divisions (Cva) of |command speed (VS)−initial speed (V0)|. The speed is controlled by determining the number of pulses (ΔY(m)a) that are output in time Δtc.

[0010] The number of divisions during acceleration CTa is a quotient of ta/Δtc. Speed increment ΔV(m)a with respect to initial speed (V0) is ΔY(m)a/Δtc. Speed increment ΔV(m−1)a with respect to V0, which is just before ΔV(m)a is ΔV(m−1)a/Δtc. Amount of variation in speed [ΔV(m)a−ΔV(m−1)a] becomes ΔY(m)a/Δtc−ΔY(m−1)a/Δtc˜|command speed (VS)−initial speed (V0)|/Cva. Here, m=(1, 2, . . . , (Cva−1), Cva).

[0011] During deceleration, number of divisions (CTd—where ‘d’ stands for deceleration) of deceleration time is calculated and taken as number of divisions (Cvd) of |command speed (VS)−initial speed (V0)|. The speed is controlled by determining the number of pulses ((ΔY(n)d) that are ouput in time Δtc.

[0012] The number of divisions during deceleration CTd is a quotient of td/Δtc. Speed increment ΔV(n)d with respect to initial speed (V0) is ΔY(n)d/Δtc. Speed increment ΔV(n−1)d with respect to V0, which is just prior to ΔV(n)d is ΔV(n−1)d/Δtc. Amount of variation in speed [ΔV(n)d−ΔV(n−1)d] becomes ΔY(n)d/Δtc−ΔY(n−1)d/Δtc˜|command speed (VS)−initial speed (V0)|/Cvd. Here, n=(Cvd, (Cvd−1), . . . ,2, 1).

[0013] The operation of the fixed time interval method is explained below with reference to FIG. 12 and FIG. 13.

[0014] The variable frequency pulse generating circuit 113 is not activated at this stage. The computing unit 112 calculates the amount of shift at the start of deceleration and calculates the number of pulses to be output ΔY(m)a =ΔY(1)a)+V0 that is to be output in first Δtc.

[0015] When the calculation is finished, the ΔY(m)a +V0, which is calculated earlier, is output to the variable frequency pulse generating circuit thereby activating the variable frequency pulse generating circuit. Thereafter, the computing unit 112 goes on calculating the following ΔY(m)a+V0 for each Δtc and outputting the ΔY(m)a+V0 to the variable frequency generating circuit 113 (goes on accelerating).

[0016] The calculation and output of the following ΔY(m)a+V0 is carried out within time Δtc. In a short time, process in the command speed (VS) is carried out. While decelerating, when counter value that is counting remaining amount of shift in real time reaches the amount of shift at the start of deceleration, it goes on decelerating with the speed of ΔY(n)d+V0. When the remaining amount of shift becomes ‘0’, the variable frequency pulse generating circuit 113 is stopped. Here, m=(1, 2, . . . ,(Cva−1), Cva), n=(Cvd, (Cvd−1), . . . ,2, 1).

[0017] A control method by varying speed in which number of divisions of speed adjustment time is fixed, speed adjustment time (acceleration or deceleration time) is divided by the number of divisions (fixed value) and the speed is varied at each time interval that is obtained from the result of the division, is available as another conventional method of speed variation control. This method is called as fixed number of divisions method in the following explanation. FIG. 14 is a block diagram of a positioning unit that employs the fixed number of divisions method. A reference 102 is a speed adjustment control block, 120 is a timing generating circuit, 121 is a memory table, 122 is a CPU or a computing unit (hereinafter, “computing unit”), 123 is a variable frequency pulse generating circuit, and 124 is position control circuit.

[0018] The speed adjustment control block 102 includes the timing generating circuit 120, the memory table 121, and the computing unit 123. A setting value, reference clock are input to the computing unit 122 from outside. The computing unit 122 calculates command speed Vp(j). The speed Vp(j) that is made to vary for each Δta(j) is expressed in terms of a reference clock frequency of the pulse generating circuit Vpp(j). The computing unit 122 also calculates speed variation timing Δta(j) during acceleration in terms of (1/base block frequency for interrupt signal) Δtap(j) and remaining distance ΔYd(g) during deceleration. The computing unit 122 writes the values of Vp(j), Δta(j), and ΔYd(g) in the memory table 121.

[0019] Moreover, the computing unit 122 divides the speed adjustment time by the number of divisions (fixed value) and provides the resultant value of the division to the timing generating circuit 120. The timing generating circuit 120 generates an interrupt signal for each time interval provided and outputs to the computing unit 122. The computing unit 122 varies the speed command using the data in the memory table 121 and outputs to the variable frequency pulse generating circuit 123. In addition to this, the computing unit 122 outputs the control signal and the setting value related to position, current speed, and number of output pulses.

[0020] The speed command generated in the speed adjustment control block 102 is provided to the variable frequency pulse generating circuit 123 thereby obtaining pulse string of variable frequency.

[0021] The position control circuit 124 receives the pulse string, counts it and returns the number of output pulses to the speed adjustment control block 102. In addition to this, the position control circuit 124 compares the control signal and the setting value related to position that are received from the speed adjustment control block 102 with number of output pulses, and generates deceleration start signal and stop signal. Thereafter, the position control circuit 124 outputs these signals to the speed adjustment control block 102 and to the variable frequency pulse generating circuit 123. The deceleration starts when deceleration start signal is validated and the output pulse stops when the stop signal is validated.

[0022] Here, Vpp(j) is [([(number of divisions (Cvc) of |command speed(VS)−initial speed|/|command speed (VS)−initial speed)×j+initial speed]×(1/reference clock frequency of pulse generating circuit))—where numbers of five and above are rounded and anything under five is dropped]. Command speed Vp(g) that is made to vary for each ΔYd(g) is expressed in terms of reference clock frequency of the pulse generating circuit and becomes [([(number of divisions (Cvc) of |command speed(VS)−initial speed|/|command speed (VS)−initial speed|)×g+initial speed]×(1/reference clock frequency of pulse generating circuit))—where numbers of five and above are rounded and anything under five is dropped].

[0023] Δtap(j) is equal to [([acceleration time/number of divisions (CTc) of acceleration time]×j×reference clock frequency for interrupt signal)—where numbers of five and above are rounded and anything under five is dropped].

[0024] ΔYd(g) is a remaining number of pulses of the output pulse which becomes [(Vpp(g)×reference clock frequency of the pulse generating circuit+initial speed)×(deceleration time/number of divisions (CTc) of the deceleration time)×g]/2. Here, j=(1, 2, . . . , (Cvc−1), (Cvc)), g=(Cvc, (Cvc−1), . . . , 2,1).

[0025]FIG. 15 is a graph of speed variation in the fixed number of divisions method. In FIG. 15, a horizontal axis indicates time, a vertical axis indicates speed and an area indicates amount of shift (number of output pulses). The speed is varied by determining the amount of variation in speed, variation time, and the amount of shift remained when the number of divisions (Cvc) of |command speed (VS)−initial speed| and the number of divisions (CTc) of the speed adjustment time (acceleration or deceleration time) are fixed values.

[0026] During acceleration, [Δta(j)]˜(ta/CTc×j) indicates speed variation timing from the start of acceleration and after elapsing of time [Δta(j)] the speed variation is controlled by varying speed increment [ΔV(j)] with respect to V0.

[0027] During deceleration, a value obtained by subtracting a current value of number of output pulses from amount of command shift is counted (amount of shift that is remained, is indicated in real time). When this calculated value reaches the amount of shift remained, the speed increment [ΔV(g)] with respect to V0 is made to vary, thereby controlling the speed variation.

[0028] The amount of variation in speed [ΔV(j))−ΔV(j−1)] becomes [ΔV(g)−ΔV(g−1)]˜(|command speed (VS)−initial speed|/Cvc). Here, j=(1,2, . . . , (Cvc−1), Cvc) and g=(Cvc,(Cvc−1), . . . , 2, 1).

[0029] The operation in the fixed number of divisions method is explained below while referring to FIG. 15 and FIG. 16.

[0030] The variable frequency pulse generating circuit 123 is not activated at this stage. The computing unit 122 calculates the Δtap(j), Vpp(j)=Vpp(g) required at the time of acceleration, ΔYd(g) required at the time of deceleration and writes values of Δtap(j), Vpp(j)=Vpp(g) and ΔYd(g) in the memory table 121.

[0031] The variation frequency pulse generating circuit is activated. Therefore, acceleration is carried out with the speed Vp=[ΔV(j)+V0] for each ΔYd(g). Thereafter, when the counter value, which is counting the amount of shift remained in real time, reaches ΔYd(g), deceleration is carried out with the speed of Vp=[ΔV(g)+V0] and when the amount of shift remained becomes ‘0’, the variable frequency pulse generating circuit 123 stops. Here, j=(1, 2, . . . , (Cvc−1), Cvc) and g=(Cvc, (Cvc−1), . . . , 2, 1).

[0032] Japanese Patent Application laid open Publication No. 1998-42597 discloses a stationary recording disc in an information recording apparatus. This publication teaches use of an acceleration region that is increased in form of steps, for frequency step range Δf a value obtained by dividing [target frequency (rated number of revolutions region) f3−starting speed f2] by 8. This is a method in which time range Δt corresponding to the value of Δf obtained is made to be Δt=t2/8.

[0033] In the fixed time interval method, since the time interval is fixed, as the speed adjustment time becomes short, the number of divisions of time and the number of divisions of speed become smaller and the amount of variation in speed becomes large. Due to the large amount of variation in speed the stepping motor becomes apt to lose synchronism (misstepping), which is a problem in this conventional method.

[0034] Generally, in positioning control carried out by the fixed time interval method, it is necessary to increase the number of divisions to avoid the loss of synchronism. However, since calculation is carried out one after another for each control cycle Δtc, there is always load on calculating machine (microcomputer, computing unit etc.) and it is not possible to deal with increased number of control axes. In such case, it is necessary to make the control period Δtc long or to improve performance of the calculating machine or to increase the number of calculating machines. However, improving the performance of the calculating machine increases the cost, increasing of number of clocks makes it weaker to noise, and increasing the number of calculating machines results in increase in mounting area, thereby making the size bigger. Consequently, increasing of control axes proved to be disadvantageous. Furthermore, the speed during the speed adjustment does not change in multiples of minimum speed and correct monitoring of speed becomes impossible.

[0035] Moreover, in positioning control carried out by the fixed time interval method, it is necessary to increase the number of divisions considering the performance of the calculating machine to avoid the loss of synchronism. Therefore, the speed adjustment time has to be set longer which results in a longer tact time (positioning time).

[0036]FIG. 16 is a graphical representation of problems in the fixed time interval method. A graph 2 is obtained with the conventional fixed time interval method, a graph 1 is obtained according to the present invention, and a graph 3 is obtained with another conventional fixed number of divisions method. As is clear from this figure, since the time interval is fixed, the speed variation during acceleration in graph 2 is in the form of steep steps.

[0037] On the other hand, in the fixed number of divisions method, since the number of divisions is fixed, as the value of |command speed (VS)−initial speed| becomes bigger, the amount of variation in speed also increases thereby making the stepping motor apt to lose synchronism.

[0038] Generally, in positioning control carried out by the fixed number of divisions method, it is necessary to set the speed adjustment time longer. However, when the speed adjustment time is set to be longer, the tact time (positioning time) becomes longer.

[0039] Moreover, it is necessary to increase the number of divisions so as to decrease the amount of variation in speed, and increase in number of divisions results in increase in values of Δta(j), ΔV(j), and ΔYd(g). Due to this, calculating time and time for writing in memory increase and time before start up becomes longer. This results is the tact time becoming longer and also it is necessary to increase memory that stores Δta(j), ΔV(j), and ΔYd(g), thereby increasing cost and required space.

[0040] Furthermore, the speed during the speed adjustment does not change in multiples of minimum speed and correct monitoring of speed becomes impossible.

[0041]FIG. 17 is a graphical representation of problems in the fixed number of divisions method. Graph 6 is obtained with the conventional fixed number of divisions method, graph 4 is obtained according to the present invention, and graph 5 is obtained with another conventional fixed time interval method. As is clear from this figure, since the number of divisions is fixed, the speed variation during acceleration in graph 6 is in the form of steep steps.

[0042] About the speed variation control method from the starting speed f2 up to the target frequency (rated number of revolutions region f3) is not mentioned in the Japanese Patent Application Laid Open Publication No. 1998-42597. Therefore, it is not known whether it is possible to shorter the acceleration time according to the technology disclosed in this publication. Also, time required for preparatory calculation and load of calculation process is not known.

[0043] Consequently, an object of the present invention is to shorten the tact time, reduce the processing time till start up, shorten the speed adjustment time, to make it difficult to lose synchronism of the stepping motor and to provide the speed variation control method, which enables the plurality of axes control (multi-axes control) at low cost.

DISCLOSURE OF THE INVENTION

[0044] The speed adjustment control method according to the present invention comprises a process of determining an amount of variation in speed [ΔV(a/d)] from a data table of |command speed (VS)−initial speed (V0)| and speed adjustment time [t(a/d)]; a process of determining number of divisions [cv(a/d)] of |command speed (VS)−initial speed (V0)| by dividing |command speed (VS)−initial speed (V0)|by the amount of variation in speed [ΔV(a/d)]; a process of determining number of divisions [CT(a/d)] of the speed adjustment time by subtracting 1 from the number of divisions [cv(a/d)] of |command speed (VS)−initial speed (V0)|; a process of determining an interval of speed variation [At(a/d)] by dividing the speed adjustment time [t(a/d)] by the number of divisions [CT(a/d)] of the speed adjustment time; a process of determining, during acceleration, speed by adding the amount of variation in speed [ΔV(a)] to the initial speed (V0), and determining subsequent speed at each speed variation interval [Δt(a)] by adding the amount of variation in speed [ΔV(a)] to previously determined speed; a process of switching over to the command speed (VS) when the speed determined is equal to the command speed (VS); and a process of determining, during deceleration, speed by subtracting the amount of variation in speed [ΔV(d)] from the command speed (VS) or current speed, and determining subsequent speed at each speed variation interval [Δt(a)] by subtracting the amount of variation in speed [ΔV(d)] from previously determined speed.

[0045] Moreover, the speed variation interval [Δt(a/d)] is variable and provided independently from a control cycle that generates output pulses.

[0046] Furthermore, speed adjustment control method according to the present invention prepares a data table with a process of inputting parameters the initial speed (V0), a minimum value (VSmin) of the command speed, a maximum value (VSmax) of the command speed, the speed adjustment time [t(a/d)], a minimum value [t(a,d)min] of the speed adjustment time, a maximum value [t(a/d)max] of the speed adjustment time, a tolerance range condition [te(a/d)] of the speed adjustment time [t(a/d)], a condition for the amount of variation in speed, a control frequency (fc), and rank classification time (tWz) of the speed adjustment time; a process of determining a limit range (VWz) of speed difference based on the data mentioned above; a process of classifying |command speed (VS)−initial speed (V0)| in ranks in the limit range (VWz) of speed difference based on the limit range (VWz) of difference and rank classification time (tWz) of the speed adjustment time; a process of classifying the speed adjustment time [t(a/d)] in ranks in the rank classification time (tWz); and a process of determining the amount of variation in speed [ΔV(a/d)] in accordance with a combination of the |command speed (VS)−initial speed (V0)| and the speed adjustment time [t(a/d)].

[0047] Moreover, classification of rank in the limit range (VWz) of speed difference |command speed (VS)−initial speed (V0)| is carried out by (VWz×power of 2) and classification of rank in the rank classification time (tWz) of the speed adjustment time [t(a/d)] is carried out by (tWz×power of 2). The amount of variation in speed [ΔV(a/d)] is determined by minimum value of command speed (VSmin)×power of 2.

BRIEF DESCRIPTION OF THE DRAWINGS

[0048]FIG. 1 explains speed adjustment method (amount of variation in speed priority method) according to the present invention; FIG. 2 is a block diagram of a device that realizes the amount of variation in speed priority method according to the present invention; FIG. 3 is a block diagram of a speed adjustment control circuit that realizes the amount of variation in speed priority method; FIG. 4 is an illustration for explaining an example of speed change according to the present invention (amount of variation in speed priority method); FIG. 5 illustrates a method of making a data table of the amount of variation in speed [ΔV(a/d)]; FIG. 6 is an example of steps 36 to 44 in FIG. 5 expressed as a flowchart; FIG. 8 is also an example expressed as a flowchart; FIG. 7 is a data table showing how to find out the amount of variation in speed [ΔV(a/d)] during the speed adjustment time in this invention; FIG. 8 is an example when VWz in FIG. 7 is substituted by 2,000; FIG. 9 is a data table in which the amount of variation in speed [ΔV(a/d)] is made smaller; FIG. 10 is an illustration of calculation method of control frequency (fc); FIG. 11 is a comparison of speed adjustment time and positioning time between an example of this invention and that of conventional method; FIG. 12 represents a whole block of the conventional fixed time interval method; FIG. 13 is an example of speed change according to the conventional fixed time interval method; FIG. 14 represents a whole block of the conventional fixed number of divisions method; FIG. 15 is an example of speed change according to the conventional fixed number of divisions method; FIG. 16 is a comparison of speed variation between an example of this invention and that of a conventional method at speed adjustment rate of 20[ks/kHz] and during acceleration from 400[Hz] to 1,000[Hz] in 12[ms]; and FIG. 17 is a comparison of speed variation between an example of this invention and that of a conventional invention at the speed adjustment rate of approximately 20[ms/kHz] and during acceleration from 400[Hz] to 1,000[Hz] in 2,000[ms].

BEST MODE FOR CARRYING OUT THE INVENTION

[0049] First Embodiment

[0050]FIG. 1 is a flowchart of an amount of variation in speed priority method, which is a speed variation control method, in this invention. This flowchart lists the procedure conducted by a speed adjustment control block 1. FIG. 2 is a block diagram of a positioning unit that employs the speed variation control method according to the present invention.

[0051] In the figures, a reference numeral 1 represents a speed adjustment control block, 11 represents a speed adjustment control circuit, 12 represents a CPU or a computing unit, 13 represents a variable frequency pulse generating circuit, and 14 represents a position control circuit. An example of construction of the variable frequency pulse generating circuit 13 is disclosed in Japanese Patent Application Laid Open Publication No. 1999-220364.

[0052] Following is an explanation of outline of operation in a first embodiment according to the present invention.

[0053] A setting value, a reference clock, number of output pulses, a deceleration start signal, and a stop signal are input to the speed adjustment control block 1 from outside. The speed adjustment control block 1 generates a prescribed speed command and outputs a speed command value, setting value related to position, a control signal, and current speed.

[0054] The speed command value generated in the speed adjustment control block 1 is provided to the variable frequency pulse generating circuit 13 and the variable frequency pulse generating circuit 13 obtains and outputs a pulse string (fout) of variable frequency.

[0055] The position control circuit 14 receives and counts the pulse string and returns the number of output pulses to the speed adjustment control block 1. The position control circuit 14 receives the control signal and the setting value related to position from the speed adjustment control block 1 and generates a deceleration signal and a stop signal. The position control circuit 14 outputs the deceleration start signal to the speed adjustment control block 1 and outputs the stop signal to the speed adjustment control block 1 and to the variable frequency pulse generating circuit 13. When the deceleration start signal is validated, the deceleration starts and when the stop signal is validated, the pulse string is not output.

[0056] The computing unit 12 receives the setting value and the reference clock from outside. The computing unit 12 calculates and generates the control signal and the setting value related to speed and the control signal and the setting value related to position. The computing unit 12 outputs the control signal and the setting value related to speed to the speed adjustment control circuit 11 and outputs the control signal and the setting value related to position to the position control circuit 14. Moreover, the computing unit 12 outputs the number of output pulses received from the position control circuit 14 and the current speed received from the speed adjustment control circuit 11 to the outside.

[0057] The speed adjustment control circuit 11 generates the speed command value based on the control signal and the setting value related to speed received from the computing unit 12 and the deceleration start signal and the stop signal received from the position control circuit and outputs the speed command value to the variable frequency pulse generating circuit 13.

[0058] An explanation of operation of the speed adjustment control block 1 will now be given while referring to FIG. 1 and FIG. 3.

[0059]FIG. 1 shows a control method executed by the speed adjustment control block 1. Steps from S1 to S10 are processed in the computing unit 12 and steps from S11 to S29 are processed in the speed adjustment control circuit 11. FIG. 3 is an illustration of internal structure of the speed adjustment control circuit 11.

[0060] In FIG. 3, 21 is a data selector-1, 22 is an adder-subtracter, 23 is a data selector-2, 24 is a subtracter, 25 is a data selector-3, 26 is a data comparator, 27 is a speed command value Vp latch circuit, and 28 is a Vp latch timing generating circuit.

[0061] To start with, in step S1, amount of variation in speed during acceleration (ΔVa) and amount of variation in speed during deceleration (ΔVd) are determined using a [ΔV(a/d)] data table. A value already determined is provided here. (explained later)

[0062] In step S2, command speed (VS), initial speed (V0), acceleration time (ta), deceleration time (td), amount of variation in speed during acceleration (ΔVa), and amount of variation in speed during deceleration (ΔVd) are received as input. The acceleration is taken care of at step S3 and the deceleration is taken care of at step S7.

[0063] In step S3, previous command speed (VSb) or bias speed (VB) is taken as initial speed (V0) during acceleration.

[0064] In step S4, number of divisions of |VS−V0| during acceleration time (Cva) are calculated by using Cva=(|VS−V0|/ΔVa: raising decimal of a resultant value to the next whole number).

[0065] In step S5, number of divisions (CTa) of acceleration time are calculated by using CTa=(Cva−1).

[0066] In step S6, speed variation interval (Δta) of acceleration time is calculated by using Δta=(quotient of ta/CTa).

[0067] In step S7, only bias speed (VB) is taken as initial speed in deceleration time.

[0068] In step S8, number of divisions (Cvd) of |VS−V0| is calculated by using Cva=(|VS−V0|/ΔVd : raising decimal of a resultant value to the next whole number).

[0069] In step S9, number of divisions (CTd) of deceleration time is calculated by CTd=(Cvd−1).

[0070] In step S10, speed variation interval (Δtd) of deceleration time is calculated by using Δtd=(quotient of td/CTd).

[0071] The steps from S1 to S10 are carried out by the computing unit 12 as preparation before starting of pulse output.

[0072] The speed adjustment control circuit configured as in FIG. 3 based on step 11 onward.

[0073] To start with, in step 11, it is checked whether a deceleration start command is received. When the deceleration start command is received, process in step S25 is carried out and when the deceleration start command is not received, process in step S12 is carried out.

[0074] In step S12, V0 and Vs are compared with each other. When V0=VS, process in step S24 is carried out and when V0≠ VS, process in step S13 is carried out.

[0075] In step S13, V0 and VS are compared with each other. When V0>VS, process in step S16 is carried out and when V0<VS, process in step S814 is carried out.

[0076] In step S14, speed during acceleration (VaVd) is calculated by using VaVd=(VaVd+ΔVa).

[0077] Here, the previous command speed (VSb) or bias speed (VB) is taken as initial value of VaVd.

[0078] In step S15, VaVd and VS are compared with each other. When VaVd≧VS, process in step S24 is carried out and when VaVd<VS, process in step S18 is carried out.

[0079] On the other hand, in step S16, speed during acceleration (VaVd) is calculated by VaVd=(VaVd−ΔVa). In this case, only command speed (VSb) is an initial value of VaVd.

[0080] In step S17, VaVd and VS are compared with each other. When VaVd<VS, process in step S24 is carried out and when VaVd>VS, process in step S18 is carried out.

[0081] In step S18, Δta clock is generated.

[0082] In step S19, VaVd is latched for each Δta. Further, for acceleration during acceleration time, steps S14, S15, S18, and S19 are carried out for each Δta. On the other hand, for deceleration during acceleration time, steps S16, S17, S18, and S19 are carried out for each Δtd.

[0083] In step S20, speed command value (Vp) is calculated by using Vp=VaVd.

[0084] In step S21, Vp and VB are compared with each other. When Vp>VB, process in step S23 is carried out and when Vp≦VB, process in step S22 is carried out.

[0085] In step S22, previous Vp is held till stop.

[0086] In step S23, Vp is latched and in step S29 Vp is output to the variable frequency pulse-generating unit.

[0087] In step S24, Vp is taken as VS; in step S23, Vp is latched; and in step S29, Vp is output to the variable frequency pulse generating unit.

[0088] In step S25, speed (Vd) during deceleration is calculated by using Vd=(Vd−ΔVd). Here, speed command value (Vp) or command speed (VS) is taken as initial value of Vd.

[0089] In step S26, Δtd clock is generated.

[0090] In step S27, Vd is latched for each Δtd.

[0091] Steps S25 to S27 are carried out for each Δtd.

[0092] In step S28, speed command value (Vp) is calculated by using Vp=Vd and process in step S21 is carried out.

[0093]FIG. 4 shows speed variation in the amount of variation in speed priority method, which is a speed variation control method in the present embodiment. The amount of variation in speed [ΔV(a/d)] is determined using the data table taking precedence over speed variation interval [Δt(a/d)] and then number of divisions (Cv) of |command speed(VS)−initial speed (V0)| is determined by Cv(a/d)=(|command speed (VS)−initial speed (V0)|/ΔV(a/d): raising decimal of a product value to the next whole number). Thereafter, number of divisions [CT(a/d)] of the acceleration time is determined by using CT(a/d)=[Cv(a/d)−1] and speed variation interval [Δt(a/d)] is determined by using Δt(a/d)=[quotient of t(a/d)/ CT(a/d)]. In this case, t(a/d) is acceleration or deceleration time i.e., t(a) is acceleration time and t(d) is deceleration time.

[0094] Moreover, by providing the speed variation interval Δt(a/d) irrespective of the control cycle that generates output pulse, it is possible to have variable value instead of a fixed value.

[0095] Further, during acceleration, start up is carried out at a speed obtained by adding the amount of variation in speed ΔVa to the initial speed (V0). Speed after the speed variation interval Δta, is a value obtained by adding amount of variation in speed ΔVa to the previous speed and after elapsing of every speed variation interval Δta, the amount of variation in speed ΔVa is added to the previous speed to give speed. This is carried out iteratively.

[0096] When the command speed (VS) is attained, changeover to command speed is carried out.

[0097] When deceleration start timing is provided, speed changes over to value obtained by subtracting amount of variation in speed ΔVd from the command speed (VS) or current speed. Speed after the speed variation interval Δtd, is a value obtained by subtracting amount of variation in speed ΔVd from the previous speed and after elapsing of every speed variation interval Δtd, the amount of variation in speed ΔVd is subtracted from the previous speed to give speed. This is carried out repeatedly. Either command shift amount is attained or stops when stop command is provided.

[0098] The method mentioned above can be realized by either of software and hardware.

[0099] In the first embodiment, amount of variation in speed ΔV(a/d) is given precedence, number of divisions of speed during speed adjustment and number of divisions of speed adjustment time are kept variable, number of divisions is made to be maximum at all time. Since the speed adjustment is carried out by varying the output speed for each speed variation interval Δt(a/d), the stepping motor can not lose synchronism easily. Moreover, the speed adjustment time, processing time till start up and tact time can be shortened and plurality of axes control can be realized.

[0100] Second Embodiment

[0101] Following is an explanation of configuration of a second embodiment of the present invention.

[0102]FIG. 5 is a flowchart of a method for generating a data table of amount of variation in speed [ΔV(a/d)] in this embodiment. This process is carried out by the computing unit 12.

[0103] Steps from S31 to S35 is a process already determined by the computing unit 12 and steps from S36 to S44 can also be expressed as shown in FIG. 6.

[0104] Following is an explanation of operation in the second embodiment.

[0105] Step S31 indicates starting of process.

[0106] In step S32, data is received as input. Here, command value (VS), minimum value of the command speed (VSmin), maximum value of the command speed (VSmax), initial speed (V0), speed adjustment time [t(a/d)], minimum value of speed adjustment time [t(a,d)min], maximum value of the speed adjustment time [t(a,d)max], tolerance range condition [te(a/d)] of t(a,/d), condition of ΔV(a/d) (|VSx−V0x| and less than or equal to ΔVx(a/d), control frequency (fc), and rank classification time (tWz) of t(a/d) are received as input. In this case, acceleration is represented by ‘a’ and deceleration is represented by ‘d’.

[0107] In step S33, maximum value [CV(a/d)max] of number of divisions |VS−V0| is calculated by using Cv(a/d)max=(VWz /ΔV(a/d)min)≦(|VSmax−V0min|/ΔV(a/d)min), number of divisions [Cvx(a/d)] of required |VS−V0| is calculated by using (|VSx=V0x|/ΔV(a/d)≦Cvx≦Cv(a/d)max, limit range (VWz) of speed difference is calculated by using VWz=|VSz−V0z|≦|VSmax−V0min|, and minimum value of amount of variation in speed [ΔV(a/d)] is calculated by using ΔV(a/d)min=VSmin.

[0108] In step S34, maximum value [CT(a/d)max] of number of divisions of speed adjustment time is calculated by using [CT(a/d)max=[Cv(a/d)max−1]≦[te(a/d)×fc] and number of divisions [CTx(a/d)] of required speed adjustment time are calculated by using CTx(a/d)=[Cvx(a/d)−1]≦CT(a/d)max.

[0109] In step S35, Cv(a/d)max is calculated by using Cv(a/d)max=[CT(a/d)max+1]≦[te(a/d)×fc+1] and suitable value of Cv(a/d)max is determined. An example of method for determining a suitable value is [te(a/d)×fc].

[0110] The best value can be obtained by using (te(a/d)×fc).

[0111] Thus, from the explanation given above, VWz=[Cv(a/d)max×ΔV(a/d)min].

[0112] Since the value of fc is calculated based on the method described in FIG. 10 to satisfy the equations used in step S33, the relations of those equations are satisfied when the value of VWz is substituted in those equations.

[0113] In step S36, t(a/d) is compared with 0. When t(a/d)=0, process in step S43 is carried out and when t(a/d)≠0, process in step S37 is carried out.

[0114] In step S37, |VS−V0|is compared with 0. When |VS−V0|=0, process in step S43 is carried out when |VS−V0|≠0, process in step S838 is carried out.

[0115] In step S38, rank (K) of |VS−V0| is taken as K=0,1,2,. (integer) and calculated by using [VWz×((K−1)th power of 2)+ΔV(a/d)]min≦|VS−V0|≦[VWz×(K)th power of 2]. However, when K =0, [VWz×((K−1)th power of 2)+ΔV(a/d)min]=ΔV(a/d)min.

[0116] Moreover, it is assumed that [VWz×(K)th power of 2]max ≦|VS−V0|max=VSmax.

[0117] In step S39, rank (L) of t(a/d) is L=−1,0,1,2, . . . (integer) and calculated by using [tWz×(L)th power of 2]≦t(a/d)≦[tWz×((L+1)th power of 2)−t(a/d)min. However, when L=−1, [tWz×(L)th power of 2]=t(a/d)min.

[0118] Moreover, it is assumed that [tWz×((L+1)th power of 2)−t(a/d)min]max≦t(a/d)max.

[0119] In step S40, K is compared with L. If K>L, process in step S42 is carried out; and if K≦L, process in step S41 is carried out.

[0120] In step S41, ΔV(a/d)=ΔV(a/d)min.

[0121] In step S42, ΔV(a/d)=ΔV(a/d)min (where ΔV(a/d)min is expressed in binary numbers and is a value obtained by left shift of (K-L).

[0122] In step S43, ΔV(a/d)=0.

[0123] In step S44, ΔV(a/d) is output to speed adjustment control process and the process is terminated.

[0124] Further, steps from S36 to S44 can be expressed as shown in FIG. 6.

[0125]FIG. 6 is an example when VWz=2,000 and fc=4 MHz.

[0126] Following is an explanation of Steps S36 to S44 in FIG. 5 based on flowchart in FIG. 6.

[0127] Step S51 indicates start of process.

[0128] In step S52, t(a/d) is compared with 0. If t(a/d)=0, process in step S83 is carried out; if t(a/d)≠0, process in step S53 is carried out.

[0129] In step S53, |VS−V0| is compared with 0. If |VS−V0|=0, process in step S83 is carried out; if |VS−V0|≠0, process in step s54 is carried out.

[0130] In step S54, |VS−V0| is compared with 2,000. If |VS−V0|≦2,000, process in step S55 is carried out and K is substituted by 0. If |VS−V0|>2,000, process in step S56 is carried out.

[0131] In step S56, |VS−V0| is compared with 4,000. When |VS−V0|≦4,000, process in step S57 is carried out and K is substituted by 1. When |VS−V0|>4,000, process in step S58 is carried out.

[0132] In step S58, |VS−V0| is compared with 8,000. When |VS−V0|≦8,000, process in step S59 is carried out and K is substituted by 2. When |VS−V0|>8,000, process in step S60 is carried out.

[0133] In step S60, |VS−V0| is compared with 16,000. When |VS−V0≦16,000, process in step S61 is carried out and K is substituted by 3. When |VS−V0|>16,000, process in step S62 is carried out.

[0134] In step S62, |VS−V0| is compared with 32,000. When |VS−V0|≦32,000, process in step S63 is carried out and K is substituted by 4. When |VS−V0|>32,000, process in step S64 is carried out.

[0135] In step S64, |VS−V0| is compared with 64,000. When |VS−V0|≦64,000, process in step S65 is carried out and K is substituted by 5. When |VS−V0|>64,000, process in step S66 is carried out.

[0136] In step S66, |VS−V0| is compared with 128,000. When |VS−V0|≦128,000, process in step S67 is carried out and K is substituted by 6. When |VS−V0|>128,000, process in step S68 is carried out.

[0137] In step S68, k is substituted by 7.

[0138] In step S69, t(a/d) is compared with 1,024. When t(a/d)<1,024, process in step S70 is carried out and L is substituted by 0. When t(a/d)≧1,024, process in step S71 is carried out.

[0139] In step S71, t(a/d) is compared with 2,048. When t(a/d)<2,048, process in step S72 is carried out and L is substituted by 1. When t(a/d)≧2,048, process in step S73 is carried out.

[0140] In step S73, t(a/d) is compared with 4,096. When t(a/d)<4,096, process in step S74 is carried out and L is substituted by 2. When t(a/d)≧4,096, process in step S75 is carried out.

[0141] In step S75, t(a/d) is compared with 8,192. When t(a/d)<8,192, process in step S76 is carried out and L is substituted by 3. When t(a/d)≧8,192, process in step S77 is carried out.

[0142] In step S77, t(a/d) is compared with 16,384. When t(a/d)<16,384, process in step S78 is carried out and L is substituted by 4. When t(a/d)≧16,384, process in step S79 is carried out.

[0143] In step S79, L is substituted by 5.

[0144] In step S80, K is compared with L. When K>L, process in step S82 is carried out. In step S82, ΔV(a/d)min=1 where ΔV is a value obtained by left shift of (K-L) bits, which is expressed as a binary number “1”. When K≦L, process in step S81 is carried out and ΔV(a/d) is substituted by 1.

[0145] In step S83, ΔV(a/d) is substituted by 0.

[0146] In step S84, ΔV(a/d) is output to the speed adjustment control process and terminated. The method mentioned above can be realized by either of software and hardware.

[0147]FIG. 7 is a data table for calculation of amount of variation in speed ΔV(a/d) in the present embodiment. These are the results obtained when the process in the flowchart in FIG. 5 is carried out. FIG. 8 illustrates actual values when control frequency fc=4[MHz], VWz=2,000[Hz], ΔV(a/d)min=1[Hz], tWz=1,024[ms], and t(a/d)min=1[ms] are substituted in the equations shown in FIG. 7.

[0148] The data table in this figure provides |command speed (VS)−initial speed (V0)|[Hz], speed adjustment time t(a/d)[HZ] as input data and obtains amount of variation in speed ΔV(a/d)[Hz] as output data.

[0149] In this case, there are 10 values of |VS−V0| and 35 values of ΔV(a/d).

[0150] In FIG. 9, in order to make ΔV(a/d) narrower, ΔV is made to vary for each ΔV(a/d)min. FIG. 9 illustrates actual values when control frequency fc=4[MHz], VWz=2,000[Hz], ΔV(a/d)min=1[Hz], t(a/d)min =1[ms], te(a/d)=0.5[ms] are substituted in the equations shown in FIG. 7. Moreover, tWz cannot be a fixed value.

[0151] In this case, there are 102 values of |VS−V0|, 103 values of t(a/d), and 5,052 values of ΔV(a/d). However, due to large number of combinations, it is difficult to bring it into practice. Therefore, ΔV(a/d) is taken as (K-L)th power of 2, as shown in FIG. 8, in the present embodiment.

[0152] This allows reducing the number of combinations and makes it easy to bring this method into practice. In the second embodiment, since the determination of the amount of variation in speed ΔV(a/d) is put in the form of a data table, it has enabled to find the value of ΔV(a/d) promptly by using a simple method.

[0153]FIG. 10 is flowchart of a method for calculation of the control frequency (fc). This flowchart is provided only for reference and, therefore, will not be explained in detail.

[0154] According to the first and the second embodiments, the number of divisions of accelerated or decelerated speed and the number of divisions of speed adjustment time are made variable while giving precedence to the amount of variation in speed ΔV(a/d), the number of divisions is made maximum all the time, and the speed adjustment is carried out by varying the output speed for each speed variation interval Δt(a/d). As a result, the synchronism of stepping motor cannot be lost so easily, it is possible to shorten the speed adjustment time and the processing time before start up, and the tact time and plurality axes control can be brought into practice at low cost.

[0155] Here, the tact time is a time taken for one process and in this case, positioning operation is considered as one process. When the acceleration and deceleration time, and the processing time before start up become short, the operating time for positioning of same amount of shift becomes short.

[0156] A concrete example of improvement in tact time is explained while referring to FIG. 11.

[0157] Following is the explanation of factors related to the amount of variation in speed [ΔV(a/d)] out of factors which are to be taken into consideration in order to prevent the stepping motor from losing synchronism.

[0158] (1) Vibration characteristics of stepping motor during running.

[0159] At low speed, because there are considerable vibrations, the stepping motor cannot run smoothly. Especially, in a region centered at about 200[Hz] (0 to approximately 400[Hz]), the amount of vibrations becomes high. It is necessary to set an initial speed V0 beyond this region.

[0160] (2) Inertial load- self start up frequency (speed just before losing synchronism) characteristics, ratio of inertia.

[0161] Since a rotor of the stepping motor or the stepping motor itself has moment of inertia, there is a delay or advancement in rotation of motor shaft at an instantaneous start up or stop.

[0162] The amount of such delay or advancement varies according to the speed. When the amount goes beyond certain value, the motor cannot follow pulse speed and loses synchronism (causes misstepping). The speed just before losing synchronism is called as the self-start up frequency. Variation in the maximum self-start up frequency corresponding to the inertial load can be approximated by the following formula:

f=fs/{square root}(1+JL/Jo)[Hz]

[0163] where f is the maximum self-start up frequency [Hz] when there is inertial load, fs is the maximum self-start up frequency [Hz] of the motor independently, Jo is moment of inertia of the motor [gcm2(kg·m2)], and JL is moment of inertia of load [gcm2(kg·m2)] (J=GD2/4).

[0164] Here, it is necessary that the ratio of inertia =JL/Jo≦(5˜10). Consequently, (0.302×fs)≦f≦fs[Hz]. Therefore, it is necessary to set the initial speed (V0) smaller than the self-start up frequency (f). Also it is necessary to make [initial speed (V0)+ amount of variation in speed (ΔV(a/d))] smaller than this self-start up frequency.

[0165] (3) Rate of speed adjustment

[0166] Rate of speed adjustment can be calculated by TR=speed adjustment time [ms]/|command speed [kHz]−initial speed[kHz]|[ms/kHz].

[0167] The rate of speed adjustment determined by the above equation has to be greater than or equal to the value of the rate of speed adjustment of the stepping motor (approximately from 20 to 30) that is used. When the rate of speed adjustment determined by the calculation is less than the value of the rate of speed adjustment of the stepping motor, it is necessary to carry out changes like extending the set speed adjustment time.

[0168] Following is the explanation of an example with a two-phase motor (fs=1,500[Hz]) considering points (1), (2), and (3) mentioned above and number of output pulses =2,000 [pulses], command speed VS=5,000[Hz], and |command speed (Vs)−initial speed (V0)|.

[0169] Following three conditions are to be satisfied.

[0170] 1) As a measure against vibrations, initial speed (V0) is set to 400[Hz] from because initial speed (V0) has to be greater than or equal to 400[Hz].

[0171] 2) As a measure against loss of synchronism, following values are set: ratio of inertia ≦10 and [initial speed (V0)+amount of variation in speed [ΔV(a/d)]]<[f˜(0.302×fs)][Hz].

[0172] 3) As a measure against loss of synchronism, rate of speed adjustment is set greater than or equal to 20[ms/kHz].

[0173] To start with, ΔV(a/d)[Hz] is determined from [initial speed (V0)+amount of variation in speed [ΔV(a/d)]<[f˜(0.302×fs)][Hz]. Since the initial speed (V0)=400[Hz], 0<ΔV(a/d)<(0.302×fs−400)[Hz]. In a two phase motor (fs=1,500), ΔV(a/d)<(0.302×fs−400)=53[Hz]. Therefore, ΔV is set to less than or equal to 50[Hz].

[0174] Further, actual speed adjustment time is determined from rate of speed adjustment ≧20[ms/kHz]. Since the rate of speed adjustment 20≦speed adjustment time/|command speed|initial speed|[ms/kHz], the speed adjustment time ≧20×|command speed−initial speed|[ms]. Furthermore, since the command speed (VS)=5[kHz] and the initial speed (V0)=0.4[kHz], the actual speed adjustment time ≧20×|5−0.41|=92[ms].

[0175] Next, the minimum speed adjustment time that satisfies the condition ΔV(a/d)≦50[Hz] is determined. In the present embodiment, supposing that the speed adjustment time could be shortened up to the actual speed adjustment time during the rate of speed adjustment time, when the minimum setting of speed adjustment =92[ms], according to FIG. 8, |command speed (VS)−initial speed (V0)=|15,000−400|=4,600[Hz] and speed adjustment time=92[ms]. Therefore ΔV(a/d)=2[Hz] and satisfies the condition ΔV(a/d)≦50[Hz].

[0176] Thus, even if the minimum speed adjustment time=the minimum actual speed adjustment time=92[ms], the condition ΔV≦50[Hz] is satisfied and the motor does not lose synchronism.

[0177] In other words, the minimum speed adjustment time that satisfies the condition of ΔV≦50[Hz] is 92[ms].

[0178] On the other hand, in the conventional fixed time interval method, when set speed adjustment time=Δtc×CT(a/d)=Δtc×Cv(a/d), Cv(a/d)=[|command speed (VS)−initial speed (V0)|/ΔV−raise decimal of resultant value to the next whole number], set speed adjustment time=Δtc×[|command speed (VS)−initial speed (V0)|/ΔV −raise decimal of resultant value to the next whole number], and Δtc =2[ms], then minimum the speed adjustment time=2[ms]×(|5,000−400|[Hz]|/50[Hz]−raise decimal of a resultant value to the next whole number)=2[ms]×92=184[ms]. Since the speed is almost same as the command speed (VS) in the 92nd value of Δtc, minimum actual speed adjustment time is changed to 2[ms]×(92−1)=182[ms].

[0179] In other words, in conventional technique, the minimum speed adjustment time, which satisfies the condition ΔV(a/d)≦50[Hz] is 182[ms].

[0180] Further, the effect on tact time (difference of positioning time when number of output pulses =2,000 [pulses] are positioned) is explained below:

[0181] positioning time=(actual acceleration time+constant speed time+actual deceleration time)[ms],

[0182] constant speed time=[(number of output pulses −number of output pulses during actual acceleration time−number of output pulses during actual deceleration time) [pulses]/command speed (VS)[kHz]][ms],

[0183] number of output pulses during actual speed adjustment time˜[(initial speed (V0)+command speed (VS))[kHz]×actual speed adjustment time [ms]]/2[pulses],

[0184] number of output pulses during actual deceleration time˜[(initial speed (V0)+command speed (VS))[kHz]×actual deceleration time [ms]]/2[pulses].

[0185] In the present embodiment,

[0186] number of output pulses during actual speed adjustment time˜[(initial speed (V0)+command speed (VS))[kHz]×actual speed adjustment time [ms]]/2=[(0.4 +5)×92]/2 =248.4[pulses],

[0187] number of output pulses during actual deceleration time˜[(initial speed (V0)+command speed (VS))[kHz]×actual deceleration time [ms]]/2=[(0.4 +5)×92]/2 =248.4[pulses],

[0188] constant speed time=[(number of output pulses −number of output pulses during actual acceleration time−number of output pulses during actual deceleration time) [pulses]/command speed (VS)[kHz]]˜(2,000−248.4−248.4)/5=300.64˜301 [ms],

[0189] positioning time=(actual acceleration time+constant speed time+actual deceleration time)˜(92 +301+92)=485[ms].

[0190] Whereas, in the conventional fixed time interval method,

[0191] number of output pulses during actual acceleration time˜[(initial speed (V0)+command speed (VS))[kHz]×actual acceleration time [ms]]/2=[(0.4+5)×182]/2 =491.4[pulses],

[0192] number of output pulses during actual deceleration time˜[(initial speed (V0)+command speed (VS))×actual deceleration time [ms]]/2=[(0.4+5)×182]/2 =491.4[pulses],

[0193] constant speed time=[(number of output pulses −number of output pulses during actual acceleration time−number of output pulses during actual deceleration time) [pulses]/command speed (VS) [kHz]]˜(2,000−491.4−491.4)/5=203.4˜203[ms],

[0194] positioning time=(actual acceleration time+constant speed time+actual deceleration time)˜(182+203+182)=567[ms].

[0195] Consequently, regarding this condition, it becomes possible in the embodiment of the present invention to shorten the positioning time by approximately (567−485)=82˜approximately 80[ms] than the conventional time interval method.

[0196] According to the present invention, the amount of variation in speed ΔV(a/d) is determined using the data table, the number of divisions of accelerated or decelerated speed and the number of divisions of speed adjustment time are made variable, number of divisions is made maximum all the time, speed adjustment is carried out by varying the output speed for each speed variation interval Δt(a/d). As a result, the synchronism of stepping motor cannot be lost so easily, it is possible to shorten the speed adjustment time and the processing time before start up, and the tact time and plurality of axes control can be brought into practice at low cost.

[0197] Moreover, since the determination of the amount of variation in speed ΔV(a/d) is put in the form of a data table, it has enabled to find the value of ΔV(a/d) promptly by using a simple method and to reduce the load on the speed adjustment control block.

INDUSTRIAL APPLICABILITY

[0198] As mentioned above, the speed adjustment control method according to the present invention is suitable for speed variation control. of the stepping motor.

DESCRIPTION OF REFERENCE NUMERALS

[0199] S1: ACCORDING TO ΔV□ DATA TABLE

[0200] S2: INPUT DATA

[0201] (COMMAND SPEED:VS, INITIAL SPEED:V0, ACCELERATION TIME: ta, DECELERATION TIME:td, AMOUNT OF VARIATION IN SPEED DURING ACCELERATION:ΔV(a), AMOUNT OF VARIATION IN SPEED DURING DECELERATION:ΔVd)

[0202] S3: DURING ACCELERATION (□=a)

[0203] V0=(VSb or VB)

[0204] VSb: PREVIOUS COMMAND SPEED

[0205] S4: NUMBER OF DIVISIONS OF |VS−V0|: Cva

[0206] Cva=(|VS−V0|/ΔVa−RAISE DECIMAL OF A RESULTANT VALUE TO THE NEXT WHOLE NUMBER)

[0207] S5: NUMBER OF DIVISIONS OF ACCELERATION TIME:CTa

[0208] CTa=(Cva−1)

[0209] S6: INTERVAL IN SPEED VARIATION DURING ACCELERATION: Δta

[0210] Δta=(QUOTIENT OF ta/CTa)

[0211] S7: DURING DECELERATION (□=d)

[0212] V0=VB

[0213] VB=BIAS SPEED

[0214] S8: NUMBER OF DIVISIONS OF |VS−V0|:Cvd

[0215] Cvd=(|VS−V0|/ΔVd−RAISE DECIMAL OF A RESULTANT VALUE TO THE NEXT WHOLE NUMBER)

[0216] S9: NUMBER OF DIVISIONS OF DECELERATION TIME:CTd

[0217] CTd=(Cvd−1)

[0218] S10: INTERVAL IN SPEED VARIATION DURING DECELERATION:Δtd

[0219] Δtd=(QUOTIENT OF td/CT)

[0220] S11: IS THERE DECELERATION START COMMAND

[0221] S14: VaVd=VaVd+ΔVa

[0222] (INITIAL VALUE OF VaVd=(VSb OR VB)

[0223] S16: VaVd=VaVd−ΔVa

[0224] (INITIAL VALUE OF VaVd=VSb)

[0225] S18: GENERATION OF Δta CLOCK

[0226] (Δta COUNTER (1))

[0227] S19: VaVd IS LATCHED (3) FOR EACH Δta

[0228] S22: Vp=PREVIOUS Vp IS HELD TILL STOP

[0229] S23: Vp IS LATCHED (5)

[0230] S25: Vd=Vd−ΔVd

[0231] (INITIAL VALUE OF Vd=(Vp OR VS))

[0232] S26: GENERATION OF Δtd CLOCK

[0233] (Δtd COUNTER (2))

[0234] S27: Vd IS LATCHED (4) FOR EACH Δtd

[0235] S29: TO VARIABLE FREQUENCY PULSE GENERATING UNIT

[0236] S32: INPUT DATA

[0237] (COMMAND SPEED: VS, MINIMUM VALUE OF COMMAND SPEED: VSmin., MAXIMUM VALUE OF COMMAND SPEED: VSmax., INITIAL SPEED: V0, SPEED ADJUSTMENT TIME: t□, MINIMUM VALUE OF ACCELERATION AND DECELERATION TIME: t□min., MAXIMUM VALUE OF SPEED ADJUSTMENT TIME: t□max., TOLERENCE RANGE CONDITION OF t□: te□, CONDITION OF ΔV□|VSx−V0x| AND LESS THAN ΔVx□, CONTROL FREQUENCY: fc, RANK CLASSIFICATION TIME OF t□: tWz)

[0238] S33: MAXIMUM VALUE OF NUMBER OF DIVISIONS OF |VS−V0|: Cv□max Cv□max.=(VWz/ΔV□min.)≦(|VSmax.−V0 min.|/ΔV(□min.)

[0239] REQUIRED NUMBER OF DIVISIONS OF |VS−V0 |: Cvx□(|VSx−V0x|/ΔVx□)≦Cvx□≦Cv□max.=(VWz/ΔV□min.)

[0240] RANGE OF OF SPEED DIFFERENCE: VWz=|VSz−V0z|≦|VSmax−V0max|ΔV□min.=VSmin.:MINIMUM VALUE OF AMOUNT OF SPEED VARIATION

[0241] S34: MAXIMUM VALUE OF NUMBER OF DIVISIONS OF ACCELEREATION AND DECELERATION TIME (SPEED ADJUSTMENT TIME):CT□max. CT□max.=(Cv□max.−1)≦(te□×fc)

[0242] REQUIRED NUMBER OF DIVISIONS OF ACCELERATION AND DECELERATION TIME (SPEED ADJUSTMENT TIME):CTx□

[0243] CTx□=(Cvx□−1)≦CT□max.

[0244] S35: Cv□max.=(CT□max.+1)≦(te□×fc+1)

[0245] SUITABLE VALUE OF Cv□max IS DETERMINED

[0246] VWz=(Cv□max.×ΔV□min.)

[0247] THE VWz FULFILS CONDITION IN STEP S33.

[0248] S38: RANK OF |VS−V0|:K=0, 1, 2, . . . (INTEGER)

[0249] (VWz(2^((k−1))+ΔV□min.)≦(|VS−V0|≦(VWz(2^(k)) PROVIDED, WHEN K=0, (VWz(2^((k−1))+ΔV□min.)=ΔV□min.

[0250] AND, (VWz×2^(k)M)max.≦|VS−V0|max.=VSmax.

[0251] S39: RANK OF t□:L=−1, 0, 1, 2, . . . (INTEGER)

[0252] (tWz×2^(L))≦t□≦(tWz×2^((L+1))−t□min.)

[0253] PROVIDED THAT WHEN L=−1, (tWz×2^(L))=t□min

[0254] AND (tWz×2^((L+1))−t□min.)max.≦t□max.

[0255] S42: AMOUNT OF SPEED VARIATION ΔV□

[0256] ΔV□=ΔV□min. (WHERE ΔV□min. IS EXPRESSED IN BINARY NUMBER AND IS A VALUE OBTAINED BY LEFT SHIFT OF (K−L) BITS

[0257] S82: ΔV□ IS 1 (A BINARY NUMBER) AND IS OBTAINED BY LEFT SHIFT OF (K−L) BITS OF 1. 

1. A speed adjustment method, comprising: a process of determining an amount of variation in speed [ΔV(a/d)] from a data table of |command speed (VS)−initial speed (V0)|and speed adjustment time [t(a/d)]; a process of determining number of divisions [cv(a/d)] of |command speed (VS)−initial speed (V0)| by dividing |command speed (VS)−initial speed (V0)| by the amount of variation in speed [ΔV(a/d)]; a process of determining number of divisions [CT(a/d)] of the speed adjustment time by subtracting 1 from the number of divisions [cv(a/d)] of |command speed (VS)−initial speed (V0)|; a process of determining an interval of speed variation [Δt(a/d)] by dividing the speed adjustment time [t(a/d)] by the number of divisions [CT(a/d)] of the speed adjustment time; a process of determining, during acceleration, speed by adding the amount of variation in speed [ΔV(a)] to the initial speed (V0), and determining subsequent speed at each speed variation interval [Δt(a)] by adding the amount of variation in speed [ΔV(a)] to previously determined speed; a process of switching over to the command speed (VS) when the speed determined is equal to the command speed (VS); and a process of determining, during deceleration, speed by subtracting the amount of variation in speed [ΔV(d)] from the command speed (VS) or current speed, and determining subsequent speed at each speed variation interval [Δt(a)] by subtracting the amount of variation in speed [ΔV(d)] from previously determined speed.
 2. The speed adjustment method according to claim 1, wherein the speed variation interval [Δt(a/d)] is variable and provided independently from a control cycle that generates output pulses.
 3. The speed adjustment method according to claim 1, further comprising: a process of inputting parameters the initial speed (V0), a minimum value (VSmin) of the command speed, a maximum value (VSmax) of the command speed, the speed adjustment time [t(a/d)], a minimum value [t(a,d)min] of the speed adjustment time, a maximum value [t(a/d)max] of the speed adjustment time, a tolerance range condition [te(a/d)] of the speed adjustment time [t(a/d)], a condition for the amount of variation in speed, a control frequency (fc), and a rank classification time (tWz) of the speed adjustment time; a process of determining a limit range (VWz) of speed difference based on the parameters; a process of classifying |command speed (VS)−initial speed (V0)| in ranks in the limit range (VWz) of speed difference based on the limit range (VWz) of difference and rank classification time (tWz) of the speed adjustment time; a process of classifying the speed adjustment time [t(a/d)] in ranks in the rank classification time (tWz); and a process of determining the amount of variation in speed [ΔV(a/d)] in accordance with a combination of the |command speed (VS)−initial speed (V0)| and the speed adjustment time [t(a/d)], and thereby preparing the data table.
 4. The speed adjustment method according to claim 3, wherein the classification of rank in the limit range (VWz) of speed difference |command speed (VS)−initial speed (V0)| is carried out by (VWz×power of 2), classification of rank in the rank classification time (tWz) of the speed adjustment time (t(a/d)] is carried out by (tWz×power of 2), and the amount of variation in speed [ΔV(a/d)] is determined by the minimum value of command speed (VSmin)×power of
 2. 